<template>
  <div class="mainContainer">
    <div class="inner">
      <mainForm v-for="(item, index) in formList" :key="index" :config="formList[index]"/>
    </div>
  </div>
</template>

<script>
import mainForm from "../components/mainForm.vue";
export default {
  components: {
    mainForm
  },
  data () {
    return {
      formData: [],
      formList: [
        // {
        //   index: 0,
        //   show: false,
        //   tit: "完成个人旺铺推广 参与一次￥599抽奖",
        //   items: [
        //     {
        //       limit: [-1, 1],
        //       rate: ""
        //     }
        //   ]
        // },
        {
          index: 1,
          show: true,
          tit: "完成至少￥99销售额 累积奖券（￥99=1张）参与￥9999抽奖",
          items: [
            {
              limit: [0.05, 0.99],
              rate: ">=5%"
            },
            {
              limit: [0.01, 0.049999],
              rate: "1-5%"
            },
            {
              limit: [0, 0.009999999],
              rate: "0-1%"
            }
          ]
        }
      ]
    };
  }
};
</script>
<style lang='stylus' scoped>
@import '../assets/style/index.styl'
.mainContainer {
}
</style>
